package com.qf.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.api.dto.ResetPasswordDTO;
import com.qf.api.entity.SysUserEntity;
import com.qf.api.form.UserForm;
import com.qf.api.form.UserProfileForm;
import com.qf.api.vo.UserPageVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Author: sin
 * @Date: 2025/5/21 21:16
 * @Description:
 **/
public interface SysUserService extends IService<SysUserEntity> {

    SysUserEntity selectUserByUsername(String username);

    List<UserPageVO> getUserPage(String username, String mobile, Integer status);

    boolean updateUser(UserForm userForm);

    boolean saveUser(UserForm userForm);

    boolean uploadAvatar(MultipartFile avatar, Long userId);

    boolean resetPassword(ResetPasswordDTO resetPasswordDTO);

    SysUserEntity selectUserById(Long id);

    boolean updateCurrentUserPassword(SysUserEntity user, String oldPassword,String newPassword,String confirmPassword);

    boolean updateCurrentUserInfo(Long userId, UserProfileForm form);

    boolean updateUserStatus(Long id, Integer status);

}
